//
//  SegmentView.h
//  时光影院
//
//  Created by 贝沃it on 15/6/30.
//  Copyright © 2015年 贝沃it. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^SegmentBlock)(int index);
@interface SegmentView : UIView
{
    SegmentBlock _segmentBlock;
    
    UIImageView *_selectedImageV;//选中滑块
    NSInteger _itemCount;//按钮个数
}

/*
 按钮个数可调控件
 */
@property (nonatomic,strong) NSArray *titles;//按钮标题数组

@property (nonatomic,strong) NSString *selectedImage;//滑块图片

@property (nonatomic,assign) NSInteger selectedIndex;//当前展示的按钮位置


- (id)initWithFrame:(CGRect)frame withTitles:(NSArray *)titles segmentBlock:(SegmentBlock)segmentBlock;



@end
